From: chris@kneesaa.uk.xensource.com Date: Fri, 30 Jun 2006 13:15:12 +0000 (+0100) Subject: Remove use of unlikely -- it's not defined on all systems. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15912^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=5c561080e2331687bcea8443dacfa9857fe42623;p=xen.git Remove use of unlikely -- it's not defined on all systems. Signed-off-by: Christian Limpach --- diff --git a/tools/xenstat/libxenstat/src/xenstat.c b/tools/xenstat/libxenstat/src/xenstat.c index d6521f8edf..06e0142cb0 100644 --- a/tools/xenstat/libxenstat/src/xenstat.c +++ b/tools/xenstat/libxenstat/src/xenstat.c @@ -760,10 +760,10 @@ static int read_attributes_vbd(const char *vbd_directory, const char *what, char sprintf(file_name, "%s/%s/%s", SYSFS_VBD_PATH, vbd_directory, what); fd = open(file_name, O_RDONLY, 0); - if (unlikely(fd==-1)) return -1; + if (fd==-1) return -1; num_read = read(fd, ret, cap - 1); close(fd); - if (unlikely(num_read<=0)) return -1; + if (num_read<=0) return -1; ret[num_read] = '\0'; return num_read; }